<script>
	import storage from '@/utils/storage'
	export default {
		onLaunch: function() {
			// 网络状态监听
			uni.onNetworkStatusChange(function(res) {
				if (res.networkType == 'none' || res.networkType == '2g') {
					uni.showToast({
						title: '请检查网络连接',
						icon: 'none', // "success", "loading", "none"
						duration: 2000,
						mask: false
					})
				}
			})
			// 检查更新
			const updateManager = uni.getUpdateManager();

			updateManager.onUpdateReady(function(res) {
				updateManager.applyUpdate();
			});
		},
		onShow: function() {

		},
		onHide: function() {

		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "libs/css/common.scss";
</style>
